package org.mybatis.example;

public class Post {
    private Integer id;
    private String subject;
    private String body;
    private Integer blog_id;
    
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	public Integer getBlog_id() {
		return blog_id;
	}
	public void setBlog_id(Integer blog_id) {
		this.blog_id = blog_id;
	}
	
	@Override
	public String toString() {
		return String.format("[Post: id=%d, subject=%s, body=%s]", id, subject, body);
	}

}
